import React from 'react'
import Item from './Item'
export default function List({ result }) {
    return (
        <div className="row">
            {result.isInit ? <h2>请输入名称搜索</h2> :
                result.isSearch ? <h2>搜索中</h2> :
                    <Item key={result.data.id} result={result.data} />}
        </div>
    )
}
